<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" type="text/css" href="../static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="../lib/Hui-iconfont/1.0.7/iconfont.css" />
<link rel="stylesheet" type="text/css" href="../lib/icheck/icheck.css" />
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/style.css" />
<link rel="stylesheet" type="text/css" href="../lib/jquery.pagination/css/pagination.css" />
<script type="text/javascript" src="../lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="../lib/jquery.validation/1.14.0/jquery.validate.min.js"></script> 
<script type="text/javascript" src="../lib/jquery.json/2.2/jquery.json.js"></script>
<script type="text/javascript" src="../lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="../lib/jquery.validation/1.14.0/messages_zh.min.js"></script> 
<script type="text/javascript" src="../lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="../lib/icheck/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="../lib/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="../lib/datatables/1.10.0/jquery.dataTables.min.js"></script> 
<script type="text/javascript" src="../static/h-ui/js/H-ui.js"></script> 
<script type="text/javascript" src="../static/h-ui.admin/js/H-ui.admin.js"></script> 
<script type="text/javascript" src="../lib/jquery.pagination/jquery.pagination.js"></script> 
<script type="text/javascript" src="../static/eth/js/resume.js"></script>
<title>政策同步</title>
</head>
<body>
<article class="page-container">
	<form class="form form-horizontal" id="form" action="save">
	<input type="hidden" id="id" name="chaseCabinId" value="${chaseCabinId!}" />
	<div class="row cl">
		<label class="form-label col-xs-3 col-sm-2"><span class="c-red">*</span>pnr：</label>
		<div class="formControls col-xs-8 col-sm-2">
			<input type="text" class="input-text" value="${chaseCabin.pnr!''}" placeholder="" id="" name="pnr">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-3 col-sm-2"><span class="c-red">*</span>舱位：</label>
		<div class="formControls col-xs-8 col-sm-2">
			<input type="text" class="input-text" value="${chaseCabin.cabins!''}" placeholder="多个舱位用，分隔，往返程用/分隔，如L,M/N,S" id="" name="cabins">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-3 col-sm-2"><span class="c-red">*</span>通知手机：</label>
		<div class="formControls col-xs-8 col-sm-2">
			<input type="text" class="input-text" value="${chaseCabin.noticePhone!''}" placeholder="" id="" name="noticePhone">
		</div>
	</div>
	<div class="row cl">
		<div class="col-xs-8 col-sm-5 col-xs-offset-4 col-sm-offset-3">
			<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
		</div>
	</div>
	</form>
</article>
<!--请在下方写此页面业务相关的脚本--> 
<script type="text/javascript">
$(function(){
	$("#form").validate({
		rules:{
			pnr:{
				required:true,
			},
		},
		onkeyup:false,
		focusCleanup:false,
		success:"valid",
		submitHandler:function(form){
			var json = $('#form').serialize(); 
	        $.ajax({  
	          type : 'post',  
	          contentType : 'application/json',  
	          url : 'save?' + json,  
	          success : function(data) {
	        	  var rsult = jQuery.parseJSON(data);
	        	  if (rsult.success) {
	        		  alert("保存成功！");
	        		  window.parent.location.reload();
	        	  } else 
	        		  alert("保存失败!" + rsult.message);
	          },  
	          error : function(data) {  
	              alert("保存失败！")  
	          }  
	        });
	        return false;
		}
	});
});
</script> 
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>